//
//  OMTAlbum.h
//  OMTImagePicker
//
//  Created by yizhaorong on 2017/11/15.
//

#import <Foundation/Foundation.h>
#import "OMTAsset.h"

@class OMTAlbumManager;

// 相册加载完成
FOUNDATION_EXTERN NSString *const OMTAlbumAssetsLoadedNotification;

@interface OMTAlbum : NSObject
// 用于重新加载相册时使用
// 类型
@property (nonatomic, assign) PHAssetCollectionType type;
// 子类型
@property (nonatomic, assign) PHAssetCollectionSubtype subtype;
// 选项
@property (nonatomic, strong) PHFetchOptions *options;
// 相册名称
@property(nonatomic, strong) NSString *name;
// 相册内资源数量
@property(nonatomic, assign) NSInteger count;
// PHFetchResult<PHAsset>
@property(nonatomic, strong) id result;
// 资源数组
@property(nonatomic, strong) NSArray<OMTAsset *> *assets;
// 选中对象
@property(nonatomic, strong) NSArray *selectedAssets;
// 选中数量
@property(nonatomic, assign) NSUInteger selectedCount;
// 当前展示相册
@property (nonatomic, assign) BOOL selected;
// 相册管理器
@property (nonatomic, weak) OMTAlbumManager *albumManager;

@end
